﻿@model Dexter.Web.Mvc.ViewModel.FrontEnd.BlogController.BlogRelatedViewData

@{
    Layout = "../Shared/_layout.cshtml";
}

@section head 
{
	@Html.Partial("_seoPagingRelation", Model.RelatedContent)
}

@{Html.RenderPartial("_blogPostAbstractControl",Model.ParentPost);}

@if (Model.RelatedContent != null)
{
	<fieldset>
		<legend><strong>Related Post</strong></legend>
		<div id="recent-posts" class="widget widget_recent_entries">
			<ul>
				@foreach(var rel in Model.RelatedContent.Result)
				{
					<li style="list-style-type: none">
						<a href="@Html.Raw(U.Post.Detail(rel))">
							@rel.Title
						</a>(@rel.PublishDate.ToShortDateString())
					</li>
				}
			</ul>
		</div>
		@Html.Pager(Model.RelatedContent)
	</fieldset>
	<br />
}